﻿using System;
using System.Windows;
using Microsoft.Win32;

namespace Automator.Tasks.Windows
{
    public partial class FileDownloadTaskEditWindow : Window
    {
        public FileDownloadTaskEditWindow()
        {
            InitializeComponent();
        }
        
        private void BtnSave_Click(object sender, RoutedEventArgs e)
        {
            SaveFileDialog dialog = new SaveFileDialog();
            dialog.Filter = "All Files (*.*)|*.*";
            dialog.OverwritePrompt = true;
            dialog.Title = "Select File Location";
            dialog.ValidateNames = true;
            if (dialog.ShowDialog(this).Value)
            {
                edtLocalFile.Text = dialog.FileName;
            }
        }
    }
}